﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using MVCModel001.Models;

namespace MVCModel001.Models
{
    public class MusicStoreDbInitializer:System.Data.Entity.DropCreateDatabaseAlways<MusicStoreDB>
    {

        protected override void Seed(MusicStoreDB context)
        {
            context.Artists.Add(new Artist { Name = "孤鸿" });

            context.Genres.Add(new Genre { Name = "流行", Description = "流行的很" });

            base.Seed(context);
        }

    }
}